import Vue from 'vue'
import Router from 'vue-router'


import home from '../components/home';

import coupon from '../components/coupon';
import mycoupon from '../components/mycoupon';
import recharge from '../components/recharge';
import record from '../components/balance/record';
import detailed from '../components/balance/detailed';

import my from '../components/functiontype/my';
import feedback from '../components/functiontype/feedback';
import write from '../components/write';
import mycouponDetail from '../components/mycouponDetail';
import user_orderList from '../components/user_orderList';
import write_orderList from '../components/write_orderList';
import explain from '../components/integral/explain';
import integralRecord from '../components/integral/record';

import yplog from '../components/yplog';
const routes = [

  
  { path: '/', name: 'home',component: home,meta:{title:'首页'} },
  {path: '/coupon', name: 'coupon',component: coupon,meta:{title:'优惠券'} },
    
  {path: '/mycoupon', name: 'mycoupon',component: mycoupon,meta:{title:'我的优惠券'} },
  {path: '/recharge', name: 'recharge',component: recharge,meta:{title:'充值'} },
  {path: '/record', name: 'record',component: record,meta:{title:'充值记录'} },

  {path: '/detailed', name: 'detailed',component: detailed,meta:{title:'余额明细'} },

  
  {path: '/my', name: 'my',component: my,meta:{title:'我的资料'} },
  
  {path: '/feedback', name: 'feedback',component: feedback,meta:{title:'意见反馈'} },

  {path: '/write', name: 'write',component: write,meta:{title:'核销'} },
  {path: '/mycouponDetail', name: 'mycouponDetail',component: mycouponDetail,meta:{title:'优惠卷详情'} },

  {path: '/user_orderList', name: 'user_orderList',component: user_orderList,meta:{title:'订单类表'} },
  {path: '/write_orderList', name: 'write_orderList',component: write_orderList,meta:{title:'服装订单'} },
  
  {path: '/explain', name: 'explain',component: explain,meta:{title:'积分说明'} },

  {path: '/integralRecord', name: 'integralRecord',component: integralRecord,meta:{title:'积分记录'} },

  {path: '/yplog', name: 'yplog',component: yplog,meta:{title:'饮品订单'} },
  
]
Vue.use(Router)

export default new Router({
  routes // (缩写) 相当于 routes: routes
})
